package com.hfut.wxy.entity.mysql;

import com.hfut.wxy.common.parent.WxyBase;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;

@Entity
@Getter
@Setter
@Table(name = "WxyPickUpAddress")
@DynamicInsert
@DynamicUpdate
public class WxyPickUpAddress extends WxyBase {

    @Column(columnDefinition = "varchar(10) comment '简称'")
    private String nickName;

    @Column(columnDefinition = "varchar(32) comment '详细地址'")
    private String address;

//    @OneToMany(mappedBy = "pickUpAddress")
//    private List<WxyOrder> orderList;
}
